//
//  FaceBeautyBottomView.m
//  YouinRTCDemo
//
//  Created by 潘欣 on 2025/6/15.
//

#import "FaceBeautyBottomView.h"
#import <LSTPopView/LSTPopView.h>

@interface FaceBeautyBottomView ()
@property (nonatomic,weak) LSTPopView *popView;
@end

@implementation FaceBeautyBottomView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
    }
    
    return self;
}

-(void)showView
{
    LSTPopView *popView = [LSTPopView initWithCustomView:self
                                                popStyle:LSTPopStyleSmoothFromBottom
                                            dismissStyle:LSTDismissStyleSmoothToBottom];

    popView.hemStyle = LSTHemStyleBottom;
    popView.backgroundColor = [UIColor clearColor];
    popView.bgColor = [UIColor clearColor];
    LSTPopViewWK(popView)
    popView.popDuration = 0.5;
    popView.dismissDuration = 0.5;
    popView.isClickFeedback = YES;
    popView.rectCorners = UIRectCornerTopLeft | UIRectCornerTopRight;
    popView.cornerRadius = 15;
    popView.sweepStyle = LSTSweepStyleY_Positive;
    popView.dragStyle = LSTDragStyleNO;
    popView.sweepDismissStyle = LSTSweepDismissStyleSmooth;
    popView.bgClickBlock = ^{
        NSLog(@"点击了背景");
        [wk_popView dismiss];
    };
    self.popView = popView;

    [popView pop];
}

-(void)hideView;
{
    [self.popView dismiss];
}
-(void)dealloc
{
    NSLog(@"dealloc");
}
@end
